package tree

import "fmt"

type Node struct {
	Value       int
	Left, Rigth *Node
}
func (node Node) Print()  {
	fmt.Print(node.Value," ")
}
func (node *Node) SetValue(value int)  {
	if node == nil {
		fmt.Println("Setting Value to nil node, Ignore")
		return 
	}
	node.Value = value
}

func CreateNode(value int) *Node {
	return &Node{Value:value}
}

